package com.sbj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:41
 * 抢购订单
 */
@Getter
@Setter
@TableName("member_store")
public class MemberStore implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("buy_id")
    private Integer buyId;

    @TableField("orderNo")
    private String orderNo;

    /**
     * 卖家id
     */
    @TableField("seller_id")
    private Integer sellerId;

    /**
     * 买家id
     */
    @TableField("buyer_id")
    private Integer buyerId;

    /**
     * 商品价格
     */
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    /**
     * 订单数量
     */
    @TableField("goods_num")
    private Integer goodsNum;

    /**
     * 0 交易中 1 已完成
     */
    @TableField("order_state")
    private Integer orderState;

    /**
     * 下单时间
     */
    @TableField("order_time")
    private LocalDateTime orderTime;

    /**
     * 抢单时间
     */
    @TableField("grad_time")
    private LocalDateTime gradTime;

    /**
     * 完成时间
     */
    @TableField("complete_time")
    private LocalDateTime completeTime;

    /**
     * 支付凭证
     */
    @TableField("pay")
    private String pay;

    //支付方式
    @TableField("pay_method")
    private Integer payMethod;

    @TableField("address_id")
    private Integer addressId;

    /**
     * 0 买家仓库  1卖家仓库
     */
    private Integer type;


    private Integer transfer;

}
